#include <drogon/drogon.h>
int main(int argc, char**argv) {
    uint16_t port = 80;
    if (!(argc == 1)){port = atoi(argv[1]);};
    //Set HTTP listener address and port
    drogon::app().addListener("0.0.0.0",port);
    //Load config file
    drogon::app().loadConfigFile("../config.json");
    //Run HTTP framework,the method will block in the internal event loop
    drogon::app().run();
    return 0;
}
